using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DatabaseManager.Models
{
    ///<summary>
    ///代码生成模板
    ///</summary>
    [SugarTable("code_templates")]
    public partial class CodeTemplates
    {
           public CodeTemplates(){


           }
           /// <summary>
           /// Desc:主键ID
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")]
           public int Id {get;set;}

           /// <summary>
           /// Desc:模板名称
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="template_name")]           
           public string TemplateName {get;set;}

           /// <summary>
           /// Desc:模板类型(entity/repository/service/controller)
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="template_type")]           
           public string TemplateType {get;set;}

           /// <summary>
           /// Desc:模板内容
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="content")]           
           public string Content {get;set;}

           /// <summary>
           /// Desc:是否默认模板(1:是,0:否)
           /// Default:0
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="is_default")]           
           public byte IsDefault {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="created_time")]           
           public DateTime CreatedTime {get;set;}

           /// <summary>
           /// Desc:更新时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="updated_time")]           
           public DateTime UpdatedTime {get;set;}

    }
}
